package com.pigdogbay.anagramsolverpro;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

public class MainPagerAdapter extends FragmentPagerAdapter {

	public MainPagerAdapter(FragmentManager fm) {
        super(fm);
    }
	
    @Override
    public Fragment getItem(int position) {
        switch (position) {
            case 0:
            	return new SearchFragment();
            case 1:
            	return new HelpFragment();
            case 2:
            	return new AboutFragment();
        }
        return null;
    }
	
    @Override
    public int getCount() {
        return 3;
    }

    @Override
    public CharSequence getPageTitle(int position) {
        switch (position) {
            case 0:
                return "SEARCH";
            case 1:
                return "HELP";
            case 2:
                return "ABOUT";
        }
        return null;
    }
	
	
}
